Include keybindings of the form 'a .. z' in which key popup
authorIqbal Ansari <iqbalansari02@yahoo.com>
Fri, 13 Nov 2015 03:23:24 +0000 (08:53 +0530)
committerIqbal Ansari <iqbalansari02@yahoo.com>
Fri, 13 Nov 2015 17:10:05 +0000 (22:40 +0530)
which-key.el

index ed156794468e3b7fe431440e5865d85f10fc413e..fea86ab304a9a9595f9d16a10dc740c0a28ba4b0 100644 (file)
@@ -1253,14 +1253,17 @@ BUFFER that follow the key sequence KEY-SEQ."
                              ;; or `modeline' which might not be as interesting)
                              ;; the initial sequence should be followed by one
                              ;; or more tab/space which are then followed by a
-                             ;; sequence of non newline/tab characters
+                             ;; sequence of non newline/tab characters.
+                             ;; Additionally keybindings of the form [a-z]
+                             ;; .. [a-z] are also matched
                              ;; For example the following should match
                              ;; C-x             Prefix Command
                              ;; <f1>            Some command
+                             ;; a .. z          Some command
                              ;; But following should not
                              ;; C-x 8           Prefix Command
                              ;; <S-dead-acute>  Prefix Command
-                             "^\\([^ <>\t]+\\|<f[0-9]+>\\)[ \t]+\\([^\t\n]+\\)$"))
+                             "^\\([^ <>\t]+\\|<f[0-9]+>\\|\\w \\.\\. \\w\\)[ \t]+\\([^\t\n]+\\)$"))
          (lines-to-flush'("[bB]inding[s]?[:]?$" "translations:$" "-------$"))
          key-match desc-match unformatted)
     (save-match-data